<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8" >
    <title>测试thymeleaf</title>
</head>
<body>
<h3 th:text="${name}"></h3>
<hr/>
<div shiro:hasPermission="user:add">
用户添加功能:<a href="add">用户添加</a><br>
</div>
<div shiro:hasPermission="user:update">
用户编辑功能:<a href="update">用户编辑</a><br>
</div>
<div shiro:hasPermission="user:delete">
    用户编辑功能:<a href="delete">用户删除</a><br>
</div>
<a href="/shiro/logout">登出</a>
</body>
</html>